package com.linxz.wandnroid.pojo;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Linxz
 * 创建日期：2020年02月28日 12:57
 * version：v4.5.4
 * 描述：
 */
public class GankResultBean {

    @SerializedName("Android")
    private List<GankBean> android;
    @SerializedName("App")
    private List<GankBean> app;
    @SerializedName("iOS")
    private List<GankBean> ios;
    @SerializedName("休息视频")
    private List<GankBean> vedio;
    @SerializedName("前端")
    private List<GankBean> web;
    @SerializedName("拓展资源")
    private List<GankBean> expand;
    @SerializedName("瞎推荐")
    private List<GankBean> recommand;
    @SerializedName("福利")
    private List<GankBean> welfare;

    public List<GankBean> getAndroid() {
        return android;
    }

    public void setAndroid(List<GankBean> android) {
        this.android = android;
    }

    public List<GankBean> getApp() {
        return app;
    }

    public void setApp(List<GankBean> app) {
        this.app = app;
    }

    public List<GankBean> getIos() {
        return ios;
    }

    public void setIos(List<GankBean> ios) {
        this.ios = ios;
    }

    public List<GankBean> getVedio() {
        return vedio;
    }

    public void setVedio(List<GankBean> vedio) {
        this.vedio = vedio;
    }

    public List<GankBean> getWeb() {
        return web;
    }

    public void setWeb(List<GankBean> web) {
        this.web = web;
    }

    public List<GankBean> getExpand() {
        return expand;
    }

    public void setExpand(List<GankBean> expand) {
        this.expand = expand;
    }

    public List<GankBean> getRecommand() {
        return recommand;
    }

    public void setRecommand(List<GankBean> recommand) {
        this.recommand = recommand;
    }

    public List<GankBean> getWelfare() {
        return welfare;
    }

    public void setWelfare(List<GankBean> welfare) {
        this.welfare = welfare;
    }

    public List<GankBean> getGankFromTab(String tabName){
        switch (tabName){
            case "Android":
                return android;
            case "App":
                return app;
            case "iOS":
                return ios;
            case "休息视频":
                return vedio;
            case "前端":
                return web;
            case "拓展资源":
                return expand;
            case "瞎推荐":
                return recommand;
            case "福利":
                return welfare;
            default:
                return new ArrayList<>();
        }
    }
}
